use tokio::net::TcpListener;

pub fn init() {
    let listener = TcpListener::bind("127.0.0.1:8080").await?;

    tokio::spawn(async move {
        process(socket).await;
    });

    // let addr = "127.0.0.1:6142".parse().unwrap();
    // let stream = TcpStream::connect(&addr)
    //     .and_then(|_stream| {
    //         println!("created stream");
    //         //Process stream here
    //         Ok(())
    //     })
    //     .map_err(|err| {
    //         // All tasks must have an 'Error' type of '()'. This forces error
    //         // handing and helps avoid silencing failures.
    //         println!("connection error = {:?}", err);
    //     });
}
